package com.yuju.account.enums;

import com.yuju.account.enums.SettleAccountReturnCodeEnum;

/**
 * 类名：NoShowReturnCodeEnum  <br />
 *
 * 功能：
 *
 * @author : jiaokn <br />
 * @Date : 2017年12月12日 下午4:23:28  <br />
 * @version : 1.1 <br />
 */
public enum NoShowReturnCodeEnum {
	
	NOSHOW_SAVE_SUCCESS("yuju-UnitAccountBook-1001", "新增NOSHOW成功"),
	NOSHOW_SAVE_FAILURE("yuju-UnitAccountBook-1002", "新增NOSHOW失败");
	
	private String code;
	private String desc;
	
	NoShowReturnCodeEnum(String code, String desc) {
		this.code = code;
		this.desc = desc;
	}
	
	public static String getDescByCode(String code) {
		for (SettleAccountReturnCodeEnum enume : SettleAccountReturnCodeEnum.values()) {
			if (enume.getCode().equals(code)) {
				return enume.getDesc();
			}
		}
		
		return "未知枚举类型";
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}
}
